﻿@model IEnumerable<VehicleManagement.Models.MemoryBook>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="../../Content/css/page_yk_index.css" rel="stylesheet" type="text/css" />
@Html.Partial("_PartviewAdminNav")
<div class="content bc">
    <div class="content_link_warn f12">
        你当前的位置：系统管理系统&gt&gt &nbsp;&nbsp;数据备份
    </div>
    <div class="content_right fr" id="rightcontent">
        <div class="column">
            <h4 class="title f14">
                待办事迹记录
            </h4>
        </div>
        <div class="maincontent">
            <div class="menuwrap">
                <div class="submenu">
                    <div class="box_num dil m010">
                        <span class="label">用户序号</span> <span>
                            <input type="text" class="txt_num w100" id="num" title="输入用户序号查找" />
                        </span>
                    </div>
                    <div class="box_name dil m010">
                        <span class="label">用户角色</span> <span>
                            <input type="text" class="txt_name w100" id="name" title="输入用户角色查找" />
                        </span>
                    </div>
                    <div class="box_date dil m010">
                        <span class="label">记录时间</span> <span>
                            <input type="text" class="txt_date w100" id="date" title="输入记录时间查找" />
                        </span>
                    </div>
                    <div class="box_find dil m010">
                        <input type="button" class="btn_fc f14" id="find" value="查询" title="查询记录" />
                    </div>
                    <div class="box_create dil m010">
                        <span class="btn_fc f14 h20" title="添加待办事迹">@Html.ActionLink("添加", "CreateMemoryRecord")</span>
                    </div>
                </div>
            </div>
            <div class="driveinfolist tc">
                <table class="tb_list f14">
                    <tr class="tr_head tf">
                        <th class="wp2">
                        </th>
                        <th class="wp8 tc bdl">
                            编号
                        </th>
                        <th class="wp10 tc bdl">
                            角色
                        </th>
                        <th class="wp16 tc bdl">
                            内容
                        </th>
                        <th class="wp16 tc bdl">
                            记录时间
                        </th>
                        <th class="wp8 tc bdl">
                            完成否
                        </th>
                        <th class="wp16 tc bdl">
                            备注
                        </th>
                        <th class="wp20 tc bdl">
                            操作
                        </th>
                        <th class="wp2 bdl">
                        </th>
                    </tr>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserID)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserRole)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.RecordContent)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.RecordTime)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.IsComplish)
                            </td>
                            <td>
                                <div class="setremark">@Html.DisplayFor(modelItem => item.Remark)</div>                         
                            </td>
                            <td>
                                @Html.ActionLink("编辑", "EditMemoryRecord", new { id = item.MemRecordID }) |
                                @Html.ActionLink("详情", "DetailsMemoryRecord", new { id = item.MemRecordID }) | <a href="javascript:void(0)" onclick="DeleteMemoryRecord(@item.MemRecordID)">
                                    删除</a>
                            </td>
                            <td>
                            </td>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </div>
    @Html.Partial("_PartviewMemoryBookLeftbar")
    <div class="content_contract fl">
        <a href="javascript:void(0)" class="btn_contract w8h32" id="contract" title="收缩">
        </a><a href="javascript:void(0)" class="btn_expand w8h32" id="expand" title="展开">
        </a>
    </div>
    <div class="cb">
    </div>
</div>
<script type="text/javascript" src="../../Scripts/jquery-1.5.1.js"></script>
<script src="@Url.Content("~/Scripts/jquery.query-2.1.7.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/SetPagingScript.js")" type="text/javascript"></script>
<script type="text/javascript">

    $(document).ready(function () {
        $("tr:even").css("background-color", "#D7DBE4");
    });
 
</script>
